export default {

  data () {
    return {
      isShow: false,
      visible: false,
    };
  },

  methods: {
    show () {
      this.modalShow();
    },

    modalShow () {
      this.visible = true;
	  console.log('更新')
      const stId = setTimeout(() => {
        this.isShow = true;
        clearTimeout(stId);
      }, 80);
      this.$once('hook:beforeDestroy', () => clearInterval(stId));
    },

    close () {
      this.isShow = false;
      setTimeout(() => {
        this.visible = false;
        this.$emit('onClose');
      }, 300);
    },
  },

};
